//
//  StatusToolBar.swift
//  Practice
//
//  Created by miaozhihui on 2017/2/10.
//  Copyright © 2017年 DeKuTree. All rights reserved.
//

import UIKit

class StatusToolBar: UIView {
    
    /// 微博视图模型
    var viewModel: StatusViewModel? {
        didSet {
            retweetButton.setTitle(viewModel?.repostsString, for: .normal)
            commentButton.setTitle(viewModel?.commentsString, for: .normal)
            likeButton.setTitle(viewModel?.attitudesString, for: .normal)
        }
    }
    
    /// 转发
    @IBOutlet weak var retweetButton: UIButton!
    
    /// 评论
    @IBOutlet weak var commentButton: UIButton!
    
    /// 点赞
    @IBOutlet weak var likeButton: UIButton!
}
